home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscCalendarPalette / MiscCalendarView.subproj / MiscCalendarView.h < prev    next >
Text File  |  1995-04-12  |  2KB  |  99 lines

  1. // Copyright (C) 1995 Jon Kutemeier
  2. // Use is governed by the MiscKit license
  3.  
  4. #import <appkit/View.h>
  5.  
  6. #import "misckit/DateDelegateProtocol.h"
  7. #import "misckit/MiscCalendarViewConstants.h"
  8.  
  9. @class MiscCalendarMatrix;
  10. @class DateSelectionCell;
  11. @class TextField;
  12. @class List;
  13. @class Matrix;
  14. @class Box;
  15. @class Font;
  16.  
  17. @interface MiscCalendarView : View
  18. {
  19.     id            monthField;
  20.     id            yearField;
  21.     id            dateField;
  22.     id            dateDelegate;
  23.     id            textDelegate;
  24.  
  25.     NXRect        defaultFrame;
  26.     MiscCalendarMatrix    *calendarMatrix;
  27.     DateSelectionCell    *previousDayCell;
  28.     TextField        *monthSubview,
  29.             *yearSubview,
  30.                 *inlineMonthSubview,
  31.             *inlineYearSubview;
  32.     Font        *helvetica_11,
  33.             *system_11_bold,
  34.             *helvetica_12,
  35.                  *system_12_bold;
  36.     List        *dowSubviewList;
  37.     int            titleDisplayMode;
  38.     BOOL        displayDOWHeader,
  39.             displayMonthAndYearHeader,
  40.             displayMonthHeader,
  41.             displayYearHeader,
  42.             colorDragAndDrop;
  43.  
  44. }
  45.  
  46. - finishUnarchiving;
  47. - awakeFromNib;
  48.  
  49. - initFrame:(const NXRect *)frameRect;
  50.  
  51. - getMinSize:(NXSize *)minSize maxSize:(NXSize *)maxSize from:(int)where;
  52.  
  53. - calendarMatrix;
  54.  
  55. - preserveCellColors:(BOOL)yn;
  56. - (BOOL)cellColorsPreserved;
  57.  
  58. - setColorOf:(int)element to:(NXColor)aColor forCellAt:(int)xPos :(int)yPos;
  59. - (NXColor)colorOf:(int)element forCellAt:(int)xPos :(int)yPos;
  60.  
  61. - setColorOf:(int)element to:(NXColor)aColor;
  62. - (NXColor)colorOf:(int)element;
  63.  
  64. - cellAt:(int)xPos :(int)yPos lock:(BOOL)yn;
  65. - forRow:(int)row lock:(BOOL)yn;
  66. - forColumn:(int)col lock:(BOOL)yn;
  67.  
  68. - setHighlightMode:(int)mode;
  69. - (int)highlightMode;
  70.  
  71. - allowColorDragAndDrop:(BOOL)yn;
  72. - (BOOL)canDragAndDropColor;
  73.  
  74. - forHeader:(int)aHeader display:(BOOL)doDisplay;
  75. - (BOOL)isHeaderDisplayed:(int)aHeader;
  76.  
  77. - setColorTo:(NXColor)aColor forDay:(MiscCVDays)aDay;
  78. - (NXColor)colorForDay:(MiscCVDays)aDay;
  79.  
  80. - incrementMonth:sender;
  81. - decrementMonth:sender;
  82.  
  83. - incrementYear:sender;
  84. - decrementYear:sender;
  85.  
  86. - updateDate:sender;
  87. - displayDate:sender;
  88.  
  89. - setDateDelegate:(id <DateDelegate>)anObject;
  90. - (id <DateDelegate>)dateDelegate;
  91.  
  92. - (const char *)getInspectorClassName;
  93. - (const char *)getEditorClassName;
  94.  
  95. - read:(NXTypedStream *)aStream;
  96. - write:(NXTypedStream *)aStream;
  97.  
  98. @end
  99.